package cn.gzy.service.impl;

import cn.gzy.pojo.Attention;
import cn.gzy.service.AttentionService;
import cn.gzy.util.PageUtil;
import cn.gzy.mapper.AttentionMapper; // 假设您有一个AttentionMapper来处理数据库操作

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.stream.Collectors;

@Service
public class AttentionImpl implements AttentionService {

    @Autowired
    private AttentionMapper attentionMapper;

    @Override
    public Integer insertAttention(Attention attention) {
        return attentionMapper.insertAttention(attention);
    }
}